feat(deps): bump cocoindex to 1.0.6, tag telemetry as cocoindex-code#172
Merged
Conversation
Bump cocoindex (and the sentence-transformers extra) lower bound to 1.0.6, the first release including cocoindex-io/cocoindex#1992 which adds the optional `COCOINDEX_APPLICATION_FOR_TRACKING` env var. Set `COCOINDEX_APPLICATION_FOR_TRACKING=cocoindex-code` at the top of `cocoindex_code/__init__.py` (before any submodule imports `cocoindex`) so aggregate telemetry can identify this application. Uses `setdefault` to leave any explicit user value untouched. Document the telemetry behavior and `COCOINDEX_DISABLE_USAGE_TRACKING` opt-out in the README.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
cocoindex(and thesentence-transformersextra) lower bound to 1.0.6 — the first release including cocoindex-io/cocoindex#1992, which adds the optionalCOCOINDEX_APPLICATION_FOR_TRACKINGenv var.COCOINDEX_APPLICATION_FOR_TRACKING=cocoindex-codeat the top ofcocoindex_code/__init__.py(before any submodule importscocoindex) so aggregate telemetry can identify this application. Usessetdefaultso an explicit user override still wins.COCOINDEX_DISABLE_USAGE_TRACKING=1opt-out in the README.Test plan
uv run python -c "import cocoindex_code; import os; print(os.environ['COCOINDEX_APPLICATION_FOR_TRACKING'])"printscocoindex-codeuv run pytest tests/— 193 passed